<template>
	<view>
		<swiper :indicator-dots="true" class="mx-3 py-3" style="height: 300upx;" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="(item, index) in dataList" :key="index">
				<view class="swiper-item" style="position: relative;">
					<image :src="item.thumb" mode="" style="width: 690upx;height: 300upx;"></image>
					<view class="poster-flag">
						<text>{{ text }}</text>
					</view>
				</view>
			</swiper-item>
		</swiper>
	</view>
</template>

<script>
export default {
	data() {
		return {
			text: '广告'
		};
	},
	props: {
		dataList: {
			type: Array,
			default: () => {
				return [];
			}
		}
	}
};
</script>

<style>
.poster-flag{
	width: 58upx;
	height: 30upx;
	color: #666666;
	font-size: 20upx;
	border:1px solid rgba(172,172,172,1);
	border-radius: 4upx;
	background-color: rgba(255,255,255,0.6);
	position: absolute;
	top: 14upx;
	right: 40upx;
	text-align: center;
	line-height: 30upx;
}
</style>
